<div ng-if="pagedata.op=='main'" class='fui-page  fui-page-current'>
    <div class="fui-header">
        <div class="fui-header-left" ng-click="goback()">
			 <a class="back"></a>
		</div>
        <div class="title">配送核销台</div>
        <div class="fui-header-right">&nbsp;</div>
    </div>
    <div class='fui-content'>
		<div style="padding:0.5rem">
        <div ng-if="pagedata.depot" class='fui-list-group'>
            <div class='fui-list'>
                <div class='fui-list-inner'>
                    <div class='title'>{{pagedata.depot.title}}</div>
                </div>
            </div>

        </div>
        <div class='fui-list-group'>
            <div class='fui-list'>
                <div class='fui-list-media'><img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/nopic.jpg'}}"/></div>
                <div class='fui-list-inner'>
                    <div class='title'>{{pagedata.saler.title}}</div>
                </div>
            </div>
        </div>
        <div class='fui-cell-group'>
            <div class='fui-cell-title'>请输入配送ID</div>
            <div class='fui-cell'>
                <div class='fui-cell-info'>
                    <input type='text' class='fui-input' id='verifycode' ng-model="pagedata.logid" placeholder='请输入配送ID'/>
                </div>
                <div class='fui-cell-remark noremark'>
                    <div ng-click="access_json('/signlog/up/id='+pagedata.logid)" class='btn btn-danger btn-sm btn-search'>查询配送信息</div>
                </div>
            </div>
        </div>
		<div class="fui-list jump text-center">
			<div ng-click="pagedata.scancode()" style="width:100%">
					 <div><i class="icon jinyunicon icon-saoyisao1" style="font-size:3rem;color:#63BE72"></i></div>
					 <div class="subtitle" style="color: #63BE72;font-size:0.8rem">或点击扫码，扫客户二维码！</div>
			</div>
		</div>
    </div>
</div>
</div>
<div ng-if="pagedata.op=='up'" class='fui-page  fui-page-current'>
    <div class="fui-header">
	<div class="fui-header-left">
	    <a class="back" ng-click="goback()"></a>
	</div>
	<div class="title">配送核销</div> 
	<div class="fui-header-right">&nbsp;</div>
    </div>
    <div class='fui-content'>
	<div class="jy-content">
	<div class='fui-list-group'>
	    <div class='fui-list order-status'>
		<div class='fui-list-inner'>
		    <div class='title'>ID:{{pagedata.log.id}}</div>
		    <div class='text'>总数量: {{pagedata.log.allnum}}</div>
		</div>
	    </div>
	</div>
	<div class='fui-list-group' style='margin-top:5px;'>
	    <div class='fui-list'>
		<div class='fui-list-media'>供货商：</div>
		<div class='fui-list-inner'>
		    <div class='title'>{{pagedata.merch.merchname}}</div>
		</div>
	    </div>
	</div>
	<div class="fui-list-group goods-list-group" style="background:#fff">  
		<div ng-repeat="g in pagedata.order_goods">
			<div class="fui-list goods-list"  style="background:#fff">
				<div class="fui-list-media">
				<img ng-src="{{tomedia(g.image)}}" class="round">
				</div>
				<div class="fui-list-inner">
				<div class="text goodstitle">{{g.title}}  <i ng-if="g.leititle" class="fui-tag fui-tag-red">{{g.leititle}}</i></div> 
				</div>
				<div class='fui-list-angle'>
					{{g.num}}{{g.unit}}
				</div>
			</div>
	    </div>
	</div>
    </div>
	 </div>
    <div class="fui-footer postbtn" href="javascript:;" ng-click="post(pagedata.post,'post')">
	    <i class="icon jinyunicon icon-check"></i> 
	    <span>确认签到</span>
    </div>
</div>
<script language="javascript">
scope.pagedata.scancode=function () {
			console.log('scanQRCodeOK');
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href = result;
				}
			});
}
</script> 